package com.xtkj.accountjava.service.impl;

import com.xtkj.accountjava.entity.LogEntity;
import com.xtkj.accountjava.entity.UserEntity;
import com.xtkj.accountjava.mapper.LogMapper;
import com.xtkj.accountjava.mapper.UserMapper;
import com.xtkj.accountjava.service.LogService;
import com.xtkj.accountjava.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LogServiceImpl implements LogService {

    @Autowired
    LogMapper logMapper;

    @Override
    public LogEntity saveLog(LogEntity logEntity) {
        Integer insert = logMapper.insert(logEntity);
        if(insert==0){
            return  null;
        }else {
            return  logEntity;
        }
    }
}
